package com.kll.carolinehmibiz.presentation.listener

import com.kll.carolinehmibiz.net.bean.GetAdsResponse
import com.kll.carolinehmibiz.net.bean.GetSystemMenuResponse

interface HomePageProtocol {

    interface IView {
        // 获取首页轮播图成功
        fun getHomePageAdsSuccessed(data: GetAdsResponse)
        // 获取首页轮播图失败
        fun getHomePageAdsFailed(code: Int, message: String)
        // 加载菜单成功
        fun getSystemMenuSuccessed(menus: ArrayList<GetSystemMenuResponse>)
        // 加载菜单失败
        fun getSystemMenuFailed(code: Int, message: String)
    }

    interface IPresenter {
        // 获取首页轮播图
        fun getHomePageAds()
        // 加载菜单
        fun loadSystemMenu(parentId: Int)
    }

}